Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
PolicyMapParameter Class Reference

Public Member Functions

string getPolicyMapName ()
 Returns the policyMap name that is being used. More...
 
vector< string > getRunningConfig ()
 Returns the running config string representation of policy map parameter. More...
 
int getStatementCnt ()
 Returns the number of statements configured under policy map parameter. More...
 
PolicyMapParameterStatement getStatementAt (int)
 Returns the policyMap name parameter statement based on index. More...
 
PolicyMapParameterStatement getStatement (string)
 Returns the policy map parameter statement based on the string representation. More...
 
string toString ()
 Return the configuration in string. More...
 

Member Function Documentation

◆ getPolicyMapName()

string PolicyMapParameter::getPolicyMapName ( )

Returns the policyMap name that is being used.

Returns
string, the policy map name.

◆ getRunningConfig()

vector< string > PolicyMapParameter::getRunningConfig ( )

Returns the running config string representation of policy map parameter.

Returns
vector<string> returns the running config string representation of policy map parameter.

◆ getStatement()

PolicyMapParameterStatement PolicyMapParameter::getStatement ( string  )

Returns the policy map parameter statement based on the string representation.

Parameters
statement,statementto get the policy map for.
Returns
PolicyMapParametersStatement, the policy map parameter statement based on the string representation.

◆ getStatementAt()

PolicyMapParameterStatement PolicyMapParameter::getStatementAt ( int  )

Returns the policyMap name parameter statement based on index.

Parameters
index,indexto get the policy map from.
Returns
PolicyMapParameterStatement, the policyMap name parameter statement based on index

◆ getStatementCnt()

int PolicyMapParameter::getStatementCnt ( )

Returns the number of statements configured under policy map parameter.

return int, the number of statements configured under policy map parameter.

◆ toString()

string PolicyMapParameter::toString ( )

Return the configuration in string.

Returns
string, the configuration as a string.

The documentation for this class was generated from the following file: